from app.utils.logger import Logger
from app.utils.network_utils import get_local_ip

def display_project_info(host: str, port: int, api_key: str, default_model_provider: str, 
                        enable_asr_model: bool, enable_mcp_tools: bool):
    """显示项目启动信息"""
    logger = Logger("ProjectInfo")
    logger.info("""                                  
   ___  _   _         _    ___      _   _ _   _ ____  
  / _ \| \ | |       / \  |_ _|    | | | | | | | __ ) 
 | | | |  \| |_____ / _ \  | |_____| |_| | | | |  _ \ 
 | |_| | |\  |_____/ ___ \ | |_____|  _  | |_| | |_) |
  \__\_\_| \_|    /_/   \_\___|    |_| |_|\___/|____/ 
  
  服务端版本号: v1.0.0 
  开源地址: https://gitee.com/zhuxiaohuaqn/qingning-ai-hub
  青柠博客: https://www.qingningz.cn                                                                                               
""")
    # 获取本机IP地址
    local_ip = get_local_ip()
    logger.info("=" * 50)
    logger.info("项目启动完成！")
 
    logger.info(f"访问地址: http://{local_ip}:{port}")
    logger.info(f"WebSocket地址: ws://{local_ip}:{port}/ws")
    logger.info(f"API密钥: {api_key}")
    logger.info(f"默认模型提供商: {default_model_provider}")
    logger.info(f"ASR模型启用: {enable_asr_model}")
    logger.info(f"MCP工具启用: {enable_mcp_tools}")
    logger.info("=" * 50)